package han.proof;

/**
 * @fileName: Cookie
 * @author: Han
 * @date: 2018/6/26 16:48
 * @dscription: TODO
 */
public class Cookie {

    private String cookie;
    /**
     * 当前cookie的状态.0:可用,1:暂时封禁,2:永久封禁
     */
    private int status;

    private String loginName;

    public Cookie(String loginName, String cookie) {
        this.loginName = loginName;
        this.cookie = cookie;
        status = 0;
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Override
    public String toString() {
        return "loginName:" + loginName + ",status:" + status + ",cookie:" + cookie;
    }
}
